import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
   
 
    {
      path: '/AddMark',
      name: 'AddMark',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AddMark.vue'),
    },
     
    {
      path: '/ShowMark',
      name: 'ShowMark',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/ShowMark.vue'),
    },

    {
      path: '/XgMark/:id',
      name: 'XgMark',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/XgMark.vue'),
    },

    {
      path: '/FangXing',
      name: 'FangXing',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/FangXing/FangXing.vue'),
    },
    {
      path: '/',
      name: 'Home',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/FangXing/Home.vue'),
    },

    {
      path: '/CeShi',
      name: 'CeShi',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/FangXing/CeShi.vue'),
    },

  ],
  
})

export default router
